import * as API from '@/api/common/index.js'

export async function getshopApi(params) {              //获取门店表格数据
    return  await API.GET("/v1/flash/stores",params)
};
export async function addshopApi(params) {              //新增数据
    return  await API.POST("/v1/flash/stores",params)
};
export async function editshopApi(params) {              //修改数据
    return  await API.PUT("/v1/flash/stores",params)
};
export async function exportshoper(params) {              //导出下载数据
    return  await API.GET("/v1/flash/stores/template/export",params,"blob")
};


export async function getshopsreasApi(params) {              //获取区域表格数据
    return  await API.GET("/v1/flash/storeAreas",params)
};
export async function addshopsreasApi(params) {              //新增区域表格数据
    return  await API.POST("/v1/flash/storeAreas",params)
};
export async function editshopsreasApi(params) {              //修改区域表格数据
    return  await API.PUT("/v1/flash/storeAreas",params)
};
export async function exportshoperarea(params) {              //导出下载数据
    return  await API.GET("/v1/flash/storeAreas/template/export",params,"blob")
};